package com.dtlaya.allutils.fileUpload.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "file.upload")
public class FileUploadProperties {
    private String baseDir;
    private String allowExtensions;
    private boolean createMissingDirs;
    private String pathSeparator;
    private int maxDepth;

    // Getters and Setters
    public String getBaseDir() { return baseDir; }
    public void setBaseDir(String baseDir) { this.baseDir = baseDir; }
    
    public String getAllowExtensions() { return allowExtensions; }
    public void setAllowExtensions(String allowExtensions) { this.allowExtensions = allowExtensions; }
    
    public boolean isCreateMissingDirs() { return createMissingDirs; }
    public void setCreateMissingDirs(boolean createMissingDirs) { this.createMissingDirs = createMissingDirs; }
    
    public String getPathSeparator() { return pathSeparator; }
    public void setPathSeparator(String pathSeparator) { this.pathSeparator = pathSeparator; }
    
    public int getMaxDepth() { return maxDepth; }
    public void setMaxDepth(int maxDepth) { this.maxDepth = maxDepth; }
}